package heima3_2.cn.osc.ui.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

import net.oschina.app.R;

import heima3_2.cn.osc.model.bean.CollectBean;

/**
 * Created by yaozhanlie on 2017/1/18.
 */

public class DetailActivity extends AppCompatActivity {

    private CollectBean.FavoriteBean mBeen;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_comprehensive);
        if (getIntent() != null) {
            mBeen = (CollectBean.FavoriteBean) getIntent().getSerializableExtra("been");
            setContentView(R.layout.activity_comprehensive);
        }
        Toast.makeText(this, ""+mBeen.getTitle(), Toast.LENGTH_SHORT).show();
    }
}
